package cn.tedu.csmall.passport.mappers;

import cn.tedu.csmall.passport.pojo.entity.Admin;
import cn.tedu.csmall.passport.pojo.vo.AdminListItemVO;
import cn.tedu.csmall.passport.pojo.vo.AdminLoginInfoVO;
import cn.tedu.csmall.passport.pojo.vo.AdminStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {
    int insert(Admin admin);
    int countByusername(String username);
    int countByPhone(String phone);
    int countByEmail(String email);
    int insertBatch(List<Admin> admins);
    int deleteById(Long id);
    int deleteByIds(Long...ids);
    int update(Admin admin);
    int count();
    AdminStandardVO getStandardById(Long id);
    List<AdminListItemVO> list();
    AdminLoginInfoVO getLoginInfoByUsername(String username);
}
